/**
 * File: SequenceWriteController.java
 * Created by: mhaimel
 * Created on: 22 Jul 2009
 * CVS:  $Id: SequenceWriteController.java,v 1.1 2009/08/05 15:16:12 mhaimel Exp $
 */
package uk.ac.ebi.curtain.controller.writer;

import uk.ac.ebi.curtain.controller.ParallelController;
import uk.ac.ebi.curtain.controller.SimpleReport;
import uk.ac.ebi.curtain.controller.loader.impl.ReadsWriteBean;
import uk.ac.ebi.curtain.controller.velvet.VelvetInputBean;
import uk.ac.ebi.curtain.management.IControllerReport;
import uk.ac.ebi.curtain.management.InterceptorInfo;
import uk.ac.ebi.curtain.processor.writer.impl.SequenceWriteProcessor;

/**
 * @author mhaimel
 *
 */
public class SequenceWriteController extends ParallelController<ReadsWriteBean, VelvetInputBean, SequenceWriteProcessor> {

	@Override
	protected SequenceWriteProcessor buildJob(ReadsWriteBean input,
			InterceptorInfo info) {
		SequenceWriteProcessor job = getContext().getInjector().getInstance(SequenceWriteProcessor.class);
		return job;
	}

	@Override
	protected IControllerReport getReturnCall() {
		return new SimpleReport("Finished");
	}
}
